package tsb.com.html5.base;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class AroundAdvice implements MethodInterceptor {
	
	protected final Log logger = LogFactory.getLog(getClass());
	
	public Object invoke(MethodInvocation methodInvocation) throws Throwable {

		logger.debug("********************************************");
		logger.debug(">> VNNET SERVICE APPLICATION <<");
		logger.debug(">> SERVICE : "+methodInvocation.getThis().getClass().getCanonicalName());
		logger.debug(">> METHOD : "+ methodInvocation.getMethod().getName());
		logger.debug("********************************************");
		Object object = methodInvocation.proceed();
		return object;
	}

}
